import { NavBar } from 'antd-mobile'
import React from 'react'
import { useNavigate, useParams, useSearchParams } from 'react-router-dom'

function Index() {
    let nav=useNavigate()
 let [xq]=useSearchParams()
 let img=xq.get('img')
 let price=xq.get('price')
 let date=xq.get('date')
  return (
    <div style={{margin:'10px'}}>
        <NavBar onBack={()=>nav(-1)} >详情页</NavBar>
      <div>
        <img src={img} alt="" style={{width:'100%'}} />
        <p>时间：{date}</p>
        <p>价格：{price}</p>
      </div>
    </div>
  )
}

export default Index
